import request from '@/api/http.js'

//获取班组管理列表
export const getTeamInfoList = (params) => {
    console.log('changeWorkStatus发送参数:', params)
    const query = new URLSearchParams(params).toString();
    return request.get(`api/Team/GetTeamInfoList?${query}`)
}

// 获取人员列表
export const getEmployeesInfo = (params) => {
    return request.post('api/Employees/getPageData',params)
}

// 新增班组管理
export const addTeam = (params) => {
    return request.post('api/Team/AddTeam',params)
}

// 编辑班组管理
export const updateTeam = (params) => {
    return request.post('api/Team/UpdateTeam',params)
}

// 删除班组管理
export const deleteTeam = (params) => {
    return request.post(`api/Team/DeleteTeam/${params.id}`)
}
